package base.day25;

public class DemoThread3 {
    public static void main(String[] args) {
        MyThread1 t1=new MyThread1();
        MyThread2 t2=new MyThread2();
        //设置守护进程，当普通进程执行完后守护进程也会停止
        t1.setDaemon(true);
        t1.start();
        t2.start();
    }
}
